package com.eight.common.core.domain.entity;

import com.eight.common.annotation.Excel;
import com.eight.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 试题题库章节对象 question_repo
 * 
 * @author eight
 * @date 2023-10-11
 */
@Data
public class QuestionRepo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 题库章节id */
    private Long repoId;

    /** 父题库章节id */
    @Excel(name = "父题库章节id")
    private Long parentId;

    /** 所属机构id，sys_dept.id */
    @Excel(name = "所属机构id，sys_dept.id")
    private Integer deptId;

    /** 祖级列表 */
    @Excel(name = "祖级列表")
    private String ancestors;

    /** 题库章节名称 */
    @Excel(name = "题库章节名称")
    private String repoName;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer orderNum;

    /** 题库章节状态（0正常 1停用） */
    @Excel(name = "题库章节状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 子部门 */
    private List<QuestionRepo> children = new ArrayList<QuestionRepo>();
}
